package com.york.service.impl;

import com.york.entity.User;
import com.york.service.UserService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author YORK
 * @description 针对表【user】的数据库操作Service实现
 * @createDate 2022-03-31 16:29:25
 */
@Service
public class UserServiceImpl implements UserService {

    @Override
    public List<User> selectList() {
        List<User> list = new ArrayList<>();
        for (int i = 1; i <= 10; i++) {
            User data = new User();
            data.setUsername("名字" + i);
            data.setCreated(new Date());
            data.setStatu(i);
            data.setCity("河南" + i);
            data.setEmail(i + "123456@126.com");
            list.add(data);
        }
        return list;
    }
}





